package com.zbiti.module.system.base.api.mda.domain;

import com.zbiti.framework.mda.common.annotation.MdaRequest;
import com.zbiti.framework.mda.common.annotation.MdaColumn;
import com.zbiti.framework.mda.common.annotation.MdaForeignKey;
import com.zbiti.framework.mda.common.annotation.MdaKey;
import com.zbiti.framework.mda.common.annotation.MdaTable;
import com.zbiti.framework.mda.common.domain.MdaCreateDomain;
import com.zbiti.sdk.common.enums.IdType;
import com.zbiti.sdk.common.annotation.Excel;
import com.zbiti.sdk.common.annotation.TableId;


/**
 * inventory
 *
 * @author generator
 * @date 2025-04-08 10:28:13
 */
@MdaRequest(path = "/system/inventory")
@MdaTable(name = "inventory", desc = "inventory")
public class InventoryMdaDomain extends MdaCreateDomain {

    /**
     * id
     */
    @MdaKey(type = IdType.AUTO)
    @MdaColumn(name = "id", desc = "id", isNull = false)
    @TableId
    @Excel(name = "id")
    private Long id;

    /**
     * 商品ID
     */
    @MdaColumn(name = "product_id", desc = "商品ID")
    @Excel(name = "商品ID")
    private Long productId;

    /**
     * 操作类型
     */
    @MdaColumn(name = "type", desc = "操作类型")
    @Excel(name = "操作类型")
    private String type;

    /**
     * 数量
     */
    @MdaColumn(name = "quantity", desc = "数量")
    @Excel(name = "数量")
    private Long quantity;

    /**
     * 操作人
     */
    @MdaColumn(name = "operator", desc = "操作人")
    @Excel(name = "操作人")
    private String operator;


    /**
     * 获取id
     *
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置id
     *
     * @param id id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取商品ID
     *
     * @return 商品ID
     */
    public Long getProductId() {
        return productId;
    }

    /**
     * 设置商品ID
     *
     * @param productId 商品ID
     */
    public void setProductId(Long productId) {
        this.productId = productId;
    }

    /**
     * 获取操作类型
     *
     * @return 操作类型
     */
    public String getType() {
        return type;
    }

    /**
     * 设置操作类型
     *
     * @param type 操作类型
     */
    public void setType(String type) {
        this.type = type;
    }

    /**
     * 获取数量
     *
     * @return 数量
     */
    public Long getQuantity() {
        return quantity;
    }

    /**
     * 设置数量
     *
     * @param quantity 数量
     */
    public void setQuantity(Long quantity) {
        this.quantity = quantity;
    }

    /**
     * 获取操作人
     *
     * @return 操作人
     */
    public String getOperator() {
        return operator;
    }

    /**
     * 设置操作人
     *
     * @param operator 操作人
     */
    public void setOperator(String operator) {
        this.operator = operator;
    }
}
